import { createApp } from 'vue';
import App from './App.vue';

import { setupRouter } from '/@/router';
import { setupGlobDirectives } from '/@/directives';

import plugin_Function from '../plugin/plugin_function';
import pluginObject from '../plugin/plugin_object';

async function bootstrap() {
  const app = createApp(App);

  setupRouter(app);

  setupGlobDirectives(app);

  app.use(pluginObject);
  app.use(plugin_Function);
  app.mount('#app');
}

void bootstrap();
